﻿using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using System.Diagnostics;

namespace ComSatTranslator
{
    [TestFixture]
    public class ComSatTranslatorTest
    {
#if DEBUG == true
        [Test]
        public void ComSatTranslator_1_Test()
        {
            ComSatTranslator testObject = ComSatTranslator.GetNewInstance();
            testObject.Latitud = "-33.03881";
            testObject.Longitud = "-068.88087";
            testObject.Velocidad = "006";
            testObject.Reporte = "16";
            testObject.Rumbo = "107";
            testObject.TensionDeBateria = "135";
            testObject.Odometro = "01920A6A";
            testObject.EstadoPowerGPS = "1";
            testObject.GPSFixMode = "3";
            testObject.PDOP = "01";
            testObject.SatelitesDisponibles = "10";
            testObject.SegundosUltimaPosicionOk = "0";
            testObject.NivelDeSeñal = "31";
            testObject.EstadoPowerModemCelular = "1";
            testObject.EstadoRegistroGSM = "2";
            testObject.IdMovil = "1017";
            testObject.CurrentStan = "05D0"; //No es necesario, solo para debuggear ahora exactamente la misma trama
            testObject.FechaHora = new DateTime(2012, 11, 01, 15, 23, 40);  //No es necesario, solo para debuggear ahora exactamente la misma trama


            Debug.WriteLine("Test is = " + testObject.Serialize());
            Debug.WriteLine("Real is = >RCQ16011112152340-3303881-06888087006107FF0013501920A6A13011000001231;#05D0;ID=1017;*05<");
            Assert.AreEqual(">RCQ16011112152340-3303881-06888087006107FF0013501920A6A13011000001231;#05D0;ID=1017;*05<", testObject.Serialize());

        } 
#endif
    }
}
